# When you want to execute zip-making script, please use this script.
# If you don't want to run this script, please comment everything at all!
import os

# execute loop

# example
# if you want to run from 1 to 12.
# then input 1,13

err_flag = "";
for num in range(1,20):

	# run!
	try:
		if len(str(num)) == 1:
			xx = "0" + str(num) 
			print( "01" + xx + " getting started...")

		else:
			xx = str(num) 
			print( "01" + xx + " getting started...")

		try:
			# check script file
			err_flag = "10000"
			vScriptFileName = "d:\\backup\\db\\201202"+xx+".bzs"
			f = open(vScriptFileName,'r')

			# check *.dmp file
			err_flag = "10001"
			vDumpFile = "d:\\backup\\db\\201202"+xx+".dmp"
			f = open(vDumpFile,'r')

			err_flag = "10002"
			os.system("c:\\bbzip\\breadzip.exe d:\\backup\\db\\201202"+xx+".bzs") 
		except IOError:
			print("File Not Found exception" + err_flag)
			print("script file > " + vScriptFileName)
			print("dump file > " + vDumpFile)
	except:
		print("02" + xx + " got error")
		print("          ")